<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <h1>
        <i class="fa fa-tachometer" aria-hidden="true"></i> Upload
        <small>Control panel</small>
      </h1>
    </section>
    
    <section class="content">
    	<?php if(isset($error) && trim($error)) { ?>
       <div class="alert alert-danger">
       	<?php echo $error;?>
       </div>
   		<?php } ?>

       <ul>
		<?php if(isset($upload_data)) { ?> 
		<?php foreach ($upload_data as $item => $value):?>
		<li><?php echo $item;?>: <?php echo $value;?></li>
		<?php endforeach; ?>
	<?php } ?>
		</ul>

		<?php echo form_open_multipart('upload/do_upload');?>

		<input class="form-control" type="file" name="userfile" size="20" />

		<br /><br />

		<input class="btn btn-success" type="submit" value="upload" />

		</form>
    </section>
</div>